package com.tang.generate.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tang.common.enums.FieldType;
import com.tang.common.utils.excel.annotation.ExcelEnum;
import com.tang.common.utils.excel.converter.EnumConverter;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import com.tang.framework.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "Java字段类型")
@TableName(value = "gen_field_type")
public class GenFieldType extends BaseEntity<GenFieldType> {



    @Schema(description = "类型名称")
    @ExcelProperty(value = "类型名称")
    @TableField(value = "name")
    public String name;


    @Schema(description = "类型导入的包路径")
    @ExcelProperty(value = "类型导入的包路径")
    @TableField(value = "import_str")
    public String importStr;


    @Schema(description = "类型")
    @ExcelProperty(value = "类型", converter = EnumConverter.class)
    @ExcelEnum
    @TableField(value = "type")
    public FieldType type;

}
